package com.hrm.model.daoimple;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.hrm.model.dao.FamilyDAO;
import com.hrm.model.dto.insa.FamilyDTO;

public class FamilyDAOImple extends SqlMapClientDaoSupport implements FamilyDAO{

	@Override
	public List<FamilyDTO> getFamily(FamilyDTO dto) {
		return (List<FamilyDTO>)this.getSqlMapClientTemplate().queryForList("FamilyMap.getFamily", dto);
	}

	@Override
	public void updateFamily(FamilyDTO command) {
		this.getSqlMapClientTemplate().update("FamilyMap.updateFamily", command);
	}

	@Override
	public void insertFamily(FamilyDTO command) {
		this.getSqlMapClientTemplate().insert("FamilyMap.insertFamily", command);
	}

	@Override
	public void deleteFamily(FamilyDTO command) {
		this.getSqlMapClientTemplate().delete("FamilyMap.deleteFamily", command);
	}

}
